//
//  MyBaseScene.cpp
//  CanYouDoIt
//
//  Created by hoangtx on 7/6/13.
//
//

#include "MyBaseScene.h"
#include "SceneManager.h"
#include "GameLayerManager.h"

void MyBaseScene::onEnter(){
    CCLayer::onEnter();
    getReady();
}
void MyBaseScene::onExit(){
    CCLayer::onExit();
    reset();
}

//void MyBaseScene::didShowingFailMessage(float dt){
//    CCTransitionFlipX* transition = CCTransitionFlipX::create(0.5f, SceneManager::sharedInstance()->resultScene, kCCTransitionOrientationLeftOver);
//    CCDirector::sharedDirector()->replaceScene(transition);
//    //GameLayerManager::sharedInstance()->resultLayer->getScoreToDisplayResult(numberOfSecondsPassed);
//}

//bool MyBaseScene::init(){
//    CCSize winSize = CCDirector::sharedDirector()->getWinSize();
//    failLabel = CCLabelBMFont::create("Fail!", "Info.fnt");
//    failLabel->setAnchorPoint(ccp(0.5,0.5));
//    failLabel->setPosition(ccp(winSize.width/2,(winSize.height - scoreAndTimeLayer->getBarHeight())/2));
//    failLabel->setScale(winSize.height*0.1/failLabel->getContentSize().height);
//    failLabel->setVisible(false);
//    this->addChild(failLabel,3);
//    return true;
//}